Optimal. Leaf size=501 \[ \frac {\left (a+b \text {ArcTan}\left (c x^2\right )\right ) \log (d+e x)}{e}+\frac {b c \log \left (\frac {e \left (1-\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d+e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}+\frac {b c \log \left (-\frac {e \left (1+\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d-e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}-\frac {b c \log \left (\frac {e \left (1-\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d+e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}-\frac {b c \log \left (-\frac {e \left (1+\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d-e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}+\frac {b c \text {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d-e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \text {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{2 \sqrt {-c^2} e}+\frac {b c \text {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d+e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \text {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{2 \sqrt {-c^2} e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.65, antiderivative size = 501, normalized size of antiderivative = 1.00, number of steps
used = 19, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {4976, 281,
209, 2463, 266, 2441, 2440, 2438} \begin {gather*} \frac {\log (d+e x) \left (a+b \text {ArcTan}\left (c x^2\right )\right )}{e}+\frac {b c \text {Li}_2\left (\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d-e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \text {Li}_2\left (\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{2 \sqrt {-c^2} e}+\frac {b c \text {Li}_2\left (\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d+e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \text {Li}_2\left (\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{2 \sqrt {-c^2} e}+\frac {b c \log (d+e x) \log \left (\frac {e \left (1-\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d+e}\right )}{2 \sqrt {-c^2} e}+\frac {b c \log (d+e x) \log \left (-\frac {e \left (\sqrt [4]{-c^2} x+1\right )}{\sqrt [4]{-c^2} d-e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \log (d+e x) \log \left (\frac {e \left (1-\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \log (d+e x) \log \left (-\frac {e \left (\sqrt {-\sqrt {-c^2}} x+1\right )}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{2 \sqrt {-c^2} e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 266
Rule 281
Rule 2438
Rule 2440
Rule 2441
Rule 2463
Rule 4976
Rubi steps
\begin {align*} \int \frac {a+b \tan ^{-1}\left (c x^2\right )}{d+e x} \, dx &=\int \left (\frac {a}{d+e x}+\frac {b \tan ^{-1}\left (c x^2\right )}{d+e x}\right ) \, dx\\ &=\frac {a \log (d+e x)}{e}+b \int \frac {\tan ^{-1}\left (c x^2\right )}{d+e x} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 22.38, size = 326, normalized size = 0.65 \begin {gather*} \frac {a \log (d+e x)}{e}+\frac {b \left (2 \text {ArcTan}\left (c x^2\right ) \log (d+e x)+i \left (\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt [4]{-1} e}\right )+\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt [4]{-1} e}\right )-\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-(-1)^{3/4} e}\right )-\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+(-1)^{3/4} e}\right )+\text {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt [4]{-1} e}\right )+\text {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt [4]{-1} e}\right )-\text {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-(-1)^{3/4} e}\right )-\text {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+(-1)^{3/4} e}\right )\right )\right )}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.12, size = 138, normalized size = 0.28
method | result | size |
default | \(\frac {a \ln \left (e x +d \right )}{e}+\frac {b \ln \left (e x +d \right ) \arctan \left (c \,x^{2}\right )}{e}-\frac {b e \left (\munderset {\textit {\_R1} =\RootOf \left (c^{2} \textit {\_Z}^{4}-4 c^{2} d \,\textit {\_Z}^{3}+6 c^{2} d^{2} \textit {\_Z}^{2}-4 c^{2} d^{3} \textit {\_Z} +c^{2} d^{4}+e^{4}\right )}{\sum }\frac {\ln \left (e x +d \right ) \ln \left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )+\dilog \left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )}{\textit {\_R1}^{2}-2 \textit {\_R1} d +d^{2}}\right )}{2 c}\) | \(138\) |
risch | \(\frac {i b \ln \left (e x +d \right ) \ln \left (-i c \,x^{2}+1\right )}{2 e}-\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-i c}-\left (e x +d \right ) c +c d}{e \sqrt {-i c}+c d}\right )}{2 e}-\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-i c}+\left (e x +d \right ) c -c d}{e \sqrt {-i c}-c d}\right )}{2 e}-\frac {i b \dilog \left (\frac {e \sqrt {-i c}-\left (e x +d \right ) c +c d}{e \sqrt {-i c}+c d}\right )}{2 e}-\frac {i b \dilog \left (\frac {e \sqrt {-i c}+\left (e x +d \right ) c -c d}{e \sqrt {-i c}-c d}\right )}{2 e}+\frac {a \ln \left (e x +d \right )}{e}-\frac {i b \ln \left (e x +d \right ) \ln \left (i c \,x^{2}+1\right )}{2 e}+\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {i c}-\left (e x +d \right ) c +c d}{e \sqrt {i c}+c d}\right )}{2 e}+\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {i c}+\left (e x +d \right ) c -c d}{e \sqrt {i c}-c d}\right )}{2 e}+\frac {i b \dilog \left (\frac {e \sqrt {i c}-\left (e x +d \right ) c +c d}{e \sqrt {i c}+c d}\right )}{2 e}+\frac {i b \dilog \left (\frac {e \sqrt {i c}+\left (e x +d \right ) c -c d}{e \sqrt {i c}-c d}\right )}{2 e}\) | \(431\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\mathrm {atan}\left (c\,x^2\right )}{d+e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________